<?php
return [
    'protocol'              => 'RvHex', // 协议 支持 tcp udp unix http websocket text EnDP
    'host'                  => '0.0.0.0', // 监听地址
    'port'                  => '7758', // 监听端口
    'socket'                => '', // 完整监听地址
    'context'               => [], // socket 上下文选项
    'register_deploy'       => true, // 是否需要部署register
    'businessWorker_deploy' => true, // 是否需要部署businessWorker
    'gateway_deploy'        => true, // 是否需要部署gateway

    // Register配置
    'registerAddress'       => '127.0.0.1:9527',

    // Gateway配置
    'name'                  => 'hzclientGateway',
    'count'                 => 2,
    'lanIp'                 => '127.0.0.1',
    'startPort'             => 2000,
    'daemonize'             => false,
    'pingInterval'          => 45,
    'pingNotResponseLimit'  => 0,
    'pingData'              => '',
    'stdoutFile'            => runtime_path('getaway').'std.log',
    'pidFile'               => runtime_path('getaway').'pid.log',
    'logFile'               => runtime_path('getaway').'log.log',
    'statusFile'            => runtime_path('getaway').'status.log',
    // BusinsessWorker配置
    'businessWorker'        => [
        'name'         => 'hzclientBusinessWorker',
        'count'        => 4,
        'eventHandler'=>'app\common\library\Events'
    ],
];